package top.yongyan0624.mapper;

import top.yongyan0624.pojo.CountCredit;
import top.yongyan0624.pojo.Lesson;
import top.yongyan0624.pojo.Lesson;

import java.util.List;
import java.util.Map;

/**
 * @author Yongyan
 * @description: TODO
 * @date 2020/12/27
 **/
public interface LessonMapper {
    //添加课程
    Integer addLesson(Lesson lesson);
    //删除课程
    Integer deleteLesson(Integer id);
    //修改课程
    Integer updateLesson(Lesson lesson);
    //查询所有课程
    List<Lesson> findAllLesson();
    //根据id查询课程
    Lesson findById(Integer id);
    //根据姓名查询课程
    List<Lesson> findByName(String name);
    //查找课程
    List<Lesson> findLesson(Lesson lesson);
    //统计课程总数
    Integer totalLesson();

    List<CountCredit> countCredit();

}
